package com.example.servicebase.client;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class OrderClientFallbackFactory implements FallbackFactory<OrderClient> {
    @Override
    public OrderClient create(Throwable throwable) {
        return new OrderClient() {
            @Override
            public boolean isBuyCourse(String courseId, String userId) {
                return false;
            }
        };
    }
}
